<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title>角色列表</title>
	<style type="text/css">
	<!--
	body {
		margin-left: 0px;
		margin-top: 0px;
		margin-right: 0px;
		margin-bottom: 0px;
	}
	
	.tabfont01 {
		font-family: "宋体";
		font-size: 9px;
		color: #555555;
		text-decoration: none;
		text-align: center;
	}
	
	.font051 {
		font-family: "宋体";
		font-size: 12px;
		color: #333333;
		text-decoration: none;
		line-height: 20px;
	}
	
	.font201 {
		font-family: "宋体";
		font-size: 12px;
		color: #FF0000;
		text-decoration: none;
	}
	
	.button {
		font-family: "宋体";
		font-size: 14px;
		height: 37px;
	}
	
	html {
		overflow-x: auto;
		overflow-y: auto;
		border: 0;
	}
	-->
	</style>
	
	<link href="css/css.css" rel="stylesheet" type="text/css" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table id="mainpage" width="100%" border="0" cellspacing="0"
		cellpadding="0">
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td height="62" background="images/nav04.gif">
							&nbsp;
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table id="subtree1" style="DISPLAY: " width="100%"
					border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<table width="95%" border="0" align="center"
								cellpadding="0" cellspacing="0">
								<tr>
									<td height="20">
										<!-- <span class="newfont07">选择：
											<a href="#" class="right-font08" onclick="selectAll();">全选</a>-
											<a href="#" class="right-font08" onclick="unselectAll();">反选</a>
									    </span> 
									    <input name="Submit" type="button" class="right-button08" value="删除所选信息" />  -->
									    <a href="admin/privilege/permissionAdd.jsp?pgId=${requestScope.id}" target="mainFrame">增加角色</a>
								    </td>
								</tr>
								<tr>
									<td height="40" class="font42">
										<table width="100%" border="0" cellpadding="4" align="center"
											cellspacing="1" bgcolor="#464646" class="newfont03">
											<tr>
												<td height="20" colspan="4" align="center" bgcolor="#EEEEEE" class="tablestyle_title" >角色列表</td>
											</tr>
											<tr>
												<td width="5%" align="center" bgcolor="#EEEEEE">选择</td>
												<td width="50%" height="20" align="center" bgcolor="#EEEEEE">角色名称</td>
												<td width="45%" height="20" align="center" bgcolor="#EEEEEE">操作</td>
											</tr>
											<c:forEach var="r" items="${requestScope.roles}" >
												<tr align="center">
													<td width="5%" align="center" bgcolor="#EEEEEE">
														<input type="checkbox" name="" />
													</td>
													<td width="50%" height="20" align="center" bgcolor="#EEEEEE">${r.roleName}</td>
													<td width="45%" align="center" bgcolor="#EEEEEE">
														<a href="admin/permissionListByRole?id=${r.roleId }">查看角色权限</a>
													</td>
												</tr>
											</c:forEach>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>
